package finaldemo;

public class FinalDemo extends A{

    {
        pi = 3.14;
    }

    final double pi;

    final int status;

    public FinalDemo() {
        status = 1;
    }
    public  void print(int i) {
        System.out.println("FinalDemo");
    }

    public static void main(String[] args) {
        FinalDemo finalDemo = new FinalDemo();
        finalDemo.print(1);
    }
}

class A {
    final public void print() {
        System.out.println("A");
    }
    public void print(int i) {
        System.out.println(i);
    }

}